package com.kwq.userFluent.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * UserEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "user",
    schema = "could"
)
public class UserEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("USER_ID")
  private Integer userId;

  /**
   */
  @TableField("CREATE_TIME")
  private Date createTime;

  /**
   */
  @TableField("DELETED")
  private String deleted;

  /**
   */
  @TableField("EMAIL")
  private String email;

  /**
   */
  @TableField("PASSWORD")
  private String password;

  /**
   * 权限
   */
  @TableField("PERMISSION")
  private String permission;

  /**
   * 状态
   */
  @TableField("STATE")
  private Integer state;

  /**
   */
  @TableField("UPDATE_TIME")
  private Date updateTime;

  /**
   */
  @TableField("USER_NAME")
  private String userName;

  @Override
  public final Class entityClass() {
    return UserEntity.class;
  }
}
